package com.powerteam.service.crm;

import com.github.pagehelper.PageInfo;
import com.powerteam.model.crm.Activity;
import com.powerteam.vo.Result;
import com.powerteam.vo.crm.QueryActivityVO;

/**
 * 动态相关服务接口
 *
 * @author jinming.zhang
 * @version 0.0.1
 * @date 2021/12/30
 */
public interface ActivityService {


    /**
     * 创建动态信息
     *
     * @param activity
     * @Author jinming.zhang
     * @Date 2022/1/6
     * @return Result
     */
    Result insert(Activity activity);

    /**
     * 根据资源信息删除动态信息
     *
     * @param activity
     * @Author jinming.zhang
     * @Date 2022/1/7
     * @return Result
     */
    Result deleteByResource(Activity activity);

    /**
     * 分页查询动态信息
     *
     * @param vo
     * @Author jinming.zhang
     * @Date 2022/1/9
     * @return PageInfo<Activity>
     */
    PageInfo<Activity> find(QueryActivityVO vo);

    /**
     * 删除动态信息
     *
     * @param activity
     * @Author jinming.zhang
     * @Date 2022/1/9
     * @return Result
     */
    Result delete(Activity activity);
}
